<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>tabp backend</title>
        <link href="../styles/Modules.css" type="text/css" rel="stylesheet">
        <link href="../styles/Admin_Main.css" type="text/css" rel="stylesheet">
    </head>
    <body>
        <?php
        require_once '../modules/MessageManager/MessageManager.php';
        include 'header.php';
        // TODO: Nur beim ersten Login anzeigen.
        ?>
        <div id="backend_header"></div>
        <div id="Menu">
            <a href="logout.php">Logout</a>
            <a href="index.php?page=modules">Modules</a>
        </div>
        <div id="backend_content">
            <?php
                    require_once '../modules/DatabaseManager/DatabaseManager.php';
                    $db = new DatabaseManager();

                    if (isset($_GET['page']))
                    {
                        $page = $_GET['page'];
                        $items = array();
                        switch ($page)
                        {
                            case 'modules': include 'inc_Modules.php';
                                break;
                            case 'welcome': include 'inc_Welcome.php';
                                break;
                            default: MessageManager::writeMessage('Seite nicht gefunden.', 1);
                        }

                    }
            ?>
        </div>
        <div id="backend_footer"></div>
    </body>
</html>
